/**
 * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
	config.shiftEnterMode = CKEDITOR.ENTER_BR;
    config.enterMode = CKEDITOR.ENTER_BR;
	config.allowedContent = true;//開啟script
	//config.htmlEncodeOutput = true;
    
    config.pasteFromWordRemoveFontStyles = false; 
    config.pasteFromWordRemoveStyles = false;
    config.width = '100%';
    config.height =500;
    
    config.codeSnippet_theme = 'rainbow';
    config.skin = 'moonocolor';
	config.extraPlugins = 'tliyoutube,codepen,github,image';
	
	config.toolbar = 'Full';	  
	config.toolbar_Full =
	[	    
	    { name: 'styles', items : [ 'Styles','Format','FontSize' ] },
	    { name: 'colors', items : [ 'TextColor','BGColor' ] },
	    { name: 'document', items : [ 'Preview','Paste','PasteText','PasteFromWord'] },
	    { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','-','RemoveFormat' ] },
	    { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','-',
	                                   'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'] },
	    { name: 'links', items : [ 'Link','Unlink'] },
	    { name: 'insert', items : [ 'CodeSnippet','Image','tliyoutube','Table','HorizontalRule'] },
	    { name: 'import', items : [ 'codepen','github'] },
	];
	config.filebrowserImageUploadUrl = 'uploadManageImage'
	//config.filebrowserBrowseUrl = 'browser.jsp';
};
